/**
 * <p>
 * 弹窗配置
 *
 * @Author：Roy
 * @Description：数据范围
 * @Date：Create by 2024-01-17 16:55:06
 */
const popConfig = {
  'data-range': {
    'data-range-add': {
      popTitle: '新增数据角色',
      popType: 'OperateDataRange',
      visible: true,
      popConfig: {
        width: '50%',
        minHeight: '50vh',
        destroy: true,
        popType: 'add'
      }
    },
    'data-range-search': {
      popTitle: '数据角色详情',
      popType: 'OperateDataRange',
      visible: true,
      popConfig: {
        width: '50%',
        minHeight: '50vh',
        destroy: true,
        popType: 'detail'
      }
    },
    'data-range-edit': {
      popTitle: '编辑数据角色',
      popType: 'OperateDataRange',
      visible: true,
      popConfig: {
        width: '50%',
        popType: 'edit',
        destroy: true
      }
    },
    'data-range-delete': {
      showType: 'confirm',
      confirmHeader: '提示',
      confirmContent: '确认删除XXX的角色信息？',
      splitProp: 'rangeName',
      paramsProp: { id: 'id' },
      path: 'dataRange.deleteById'
    },
    'data-range-import': {
      popTitle: '导入',
      popType: 'AddFile',
      visible: true,
      popConfig: {
        width: '50%',
        hideFooterBtn: true,
        // 上传接口
        upLoadPath: '/energy-carbon/ecp-admin/dataRange/upload',
        // 模板下载参数
        tplName: 'dataRangeRenderer'
      }
    },
    'data-range-deleteBatch': {
      showType: 'confirm',
      dataType: 'multipleList',
      confirmHeader: '提示',
      confirmContent: '确认批量删除XXX的数据范围？',
      splitProp: 'rangeName',
      paramsProp: { ids: 'id' },
      path: 'dataRange.batchDelete'
    }
  }
}

export default {}
export { popConfig }
